home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d22 / splitc.arc / SPLIT.DOC < prev    next >
Encoding:
Text File  |  1988-04-14  |  2.4 KB  |  47 lines

  1. SPLIT.EXE is a program that splits files.  Given an input file you can copy it
  2. to as many output files as you would like so long as everything fits on the
  3. command line.  Output files obtained from SPLIT can later be concatenated with
  4. the DOS copy command as shown below.  The program was written with Turbo C,
  5. however, it compiles with only minor modification under Microsoft C version 5.0
  6. and Quick C version 1.0.  (Information on how to do that is contained in the
  7. comment that heads the source code).  In fact, the SPLIT.EXE file contained in
  8. the archive file with this documentation was compiled with MSC 5.0 because it
  9. runs VERY much faster.
  10.  
  11. The syntax to SPLIT is exhibited here by examples; a formal syntax is provided
  12. to the user when the program is run without parameters.  The first parameter to
  13. the program is an input file which is to be copied to the file names that are
  14. given as additional parameters.  The last parameter specifies the ratios that
  15. the sizes of the output files have to the size of the input file.  Any logical
  16. (sane) combination of drive, path and device names may be given as input and
  17. output files, however, specifying the input filename again as one of the output
  18. files is asking for trouble.  The command
  19.  
  20.      SPLIT split.arc split.1 split.2 2:3
  21.  
  22. would copy the file split.arc to the two files split.1 and split.2 and the size
  23. of split.1 would be 2/5 the size of split.arc.  Likewise, split.2 would be 3/5
  24. the size of split.arc.  Suppose you had the file bigfile.txt on your hard disk
  25. with size 1,234,567 bytes and you had two formated 360K floppies in drives A:
  26. and B: and also enough room on your hard disk to accommodate the third output
  27. file, big3, then the command
  28.  
  29.      SPLIT bigfile.txt a:big1 b:big2 big3 362496:362496:509575
  30.  
  31. would completely fill both floppies and the 509575 byte file, big3, would reside
  32. on the hard disk in the current directory with bigfile.txt.  Notice that the
  33. numbers 362496, 362496, and 509575 sum to 1234567.  It is required that the
  34. ratio numbers sum like this if you wish to assure the proper working of a split
  35. of this type.  You could put the three output files together into another file
  36. alsobig.txt which would be identical to bigfile.txt with the DOS command
  37.  
  38.      COPY /b a:big1 + b:big2 + big3 alsobig.txt
  39.  
  40.  
  41. Feedback is appreciated and may be sent to me at my CIS User ID 72210,17 or via
  42. US Snail:
  43.  
  44.      Charles Lazo III
  45.      P.O. Box 452
  46.      Hohenwald, TN 38462
  47.